/// @author: pengboboer
/// @createDate: 2022/1/5
class BaseResponseBean {
  bool? success;
  int? code;
  String? msg;
  dynamic data;

  static BaseResponseBean? fromMap(Map<String, dynamic>? map) {
    if (map == null) return null;
    BaseResponseBean baseResponseBeanBean = BaseResponseBean();

    baseResponseBeanBean.success = map['success'];
    baseResponseBeanBean.code = map['code'];
    baseResponseBeanBean.msg = map['msg'] ?? map['errorMsg'];
    baseResponseBeanBean.data = map['data'];
    return baseResponseBeanBean;
  }

  Map toJson() => {
        "success": success,
        "code": code,
        "msg": msg,
        "data": data,
      };
}
